package com.ljj.examisto.receiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.ljj.examisto.data.service.TimeService

class BootReceiver : BroadcastReceiver() {
    override fun onReceive(context: Context, intent: Intent) {
        // 开机自启
        if (intent.action == "android.intent.action.BOOT_COMPLETED") {
            // 启动后台服务
            TimeService.startService(context)
        }
    }
}